package com.codingfuture.erp_system.mapper;

import com.codingfuture.erp_system.dto.RoleMenuDto;
import com.codingfuture.erp_system.entity.Role;
import com.codingfuture.erp_system.entity.RoleMenu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleAuthorityMapper {
    List<Role> findByAll();

    List<RoleMenu> findById(int id);

    List<RoleMenuDto> findByMenu();

    List<RoleMenu> findId(Integer roleId);

    List<String> findMenu(String[] split);

    int deleteById(Integer roleId);

    int addById(Integer roleId, List<String> stringList);

    int addId(Integer roleId, String[] split);
}
